package com.chinatsp.util;

public class SystemConstants {

	public static final String API_ACCEPT_TYPE="_api_accept_type_";
	public static final String API_ACCEPT_TYPE_XML="xml";
	public static final String API_ACCEPT_TYPE_JSON="json";
	
	public static final String API_METHOD_GET="GET";
	public static final String API_METHOD_PUT="PUT";
	public static final String API_METHOD_POST="POST";
	public static final String API_METHOD_DELETE="DELETE";

	//调试模式开关
	public static boolean INNOV_DEBUG_FLAG=true;

	// API是否开启权限验证
	public static boolean API_PRIVILEGE_CHECK_ENABLE=true;  
	// API是否开启缓存
	public static boolean API_CACHE_ENABLE=true;
	public static String API_CACHE_PATH= "/ucs_api_cache/";  // API缓存路径

	//单位：秒
	public static long DEFAULT_UPDATE_CACHE_INTERVAL = 30*60;//缺省的更新缓存数据的时间间隔，缺省是30分钟
	
	public static String Permissions_TokenFailure_CODE="1002";
	public static String Permissions_TokenFailure_DESC="您的账号已在其它设备登录，请重新登录！";
	public static String Permissions_TokenLoss_CODE="1001";
	public static String Permissions_TokenLoss_DESC="授权标识或访问令牌为空，无权访问";
	public static String SYSTEM_EXCEPTION_CODE="9999";
	public static String SYSTEM_EXCEPTION_DESC="系统繁忙，请稍后再试！";

	public static String SOA_STDAPI_CUSTOMER_KEY = "stdtsp001";
	public static String SOA_STDAPI_ACCESS_TOKEN = "7247cec6756c7025";
	//SOA新闻URL
	public static String SOA_NEWS_URL = "http://s-news.yttsp.com";
	// SOA 天气URL
	public static String SOA_WEATHER_URL = "http://weather.yttsp.com";
	// SOA 违章查询URL
	public static String SOA_PECC_URL = "http://s-pecc.yttsp.com";
	// SOA 违章查询授权应用通道
	public static String SOA_PECC_TYPE = "2";
	// SOA 尾号限行URL
	public static String SOA_LIMIT_URL = "http://s-limit.yttsp.com";
	// SOA 动态油价URL
	public static String SOA_PRICE_OIL_URL = "http://s-dprice.yttsp.com";


}
